<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
    <script src="./vue.global.js"></script>
    <link rel="stylesheet" href="./index.css" />
    <link rel="stylesheet" href="./table.css" />
    <link rel="stylesheet" href="./pugong.css" />
    <link rel="stylesheet" href="./utils.css" />
    <script src="./index.full.js"></script>

    <script>
      //适配代码
      (function (doc, win) {
        var docEI = doc.documentElement,
          resizeEvt = "orientationchange" in window ? "orientataionchange" : "resize",
          recalc = function () {
            var clientWidth = docEI.clientWidth;
            if (!clientWidth) return;
            //100是字体大小，1536是开发时浏览器窗口的宽度，等比计算
            docEI.style.fontSize = 100 * (clientWidth / 1536) + "px";
          };

        if (!doc.addEventListener) return;
        win.addEventListener(resizeEvt, recalc, false);
        doc.addEventListener("DOMContentLoaded", recalc, false);
      })(document, window);
    </script>
    <style>
      * {
        /* margin: 0;
        padding: 0; */
        font-size: 0.25rem;
      }

      .fontw {
        font-weight: 700;
      }
    </style>
  </head>

  <body>
    <div id="app" class="table-content text-left">
      <div class="text-center fontw" style="font-size: 0.25rem; margin-bottom: 50px">进场须知</div>

      <div style="font-size: 16px; margin-bottom: 100px">
        <div class="text-indent mb-20">1、进入施工现场作业前必须接受进场安全教育，每日施工前必须参加班前讲话。</div>
        <div class="text-indent mb-20">2、进场作业前必须签订劳动合同，劳动合同必须在总包单位登记备案，接受项目实名制打卡管理，每日按照要求进行打卡。</div>
        <div class="text-indent mb-20">3、进入施工现场必须服从安全管理。</div>
        <div class="text-indent mb-20">4、工人有权拒绝违章指挥和冒险作业。</div>
        <div class="text-indent mb-20">5、进入施工现场必须正确配备个人防护用品。</div>
        <div class="text-indent mb-20">6、进入施工现场禁止吸烟。</div>
        <div class="text-indent mb-20">7、进入施工现场禁止翻越和拆除安全防护设施及警示牌。</div>
        <div class="text-indent mb-20">8、进入施工现场要遵守秩序、严格遵守操作规程。</div>
        <div class="text-indent mb-20">9、禁止随意挪用消防器材。</div>
        <div class="text-indent mb-20">10、非专业人员严禁私自动用用电设备、机械设备。</div>
        <div class="text-indent mb-20">11、超过2米的高处作业需正确系挂五点式安全带，无可靠的防护禁止作业。</div>
        <div class="text-indent mb-20">12、施工现场禁止跑跳打闹、打架斗殴。</div>
        <div class="text-indent mb-20">13、禁止携带未成年人员进入施工现场。</div>
        <div class="text-indent mb-20">14、禁止酒后进入施工现场。</div>
        <div class="text-indent mb-20">15、禁止在宿舍内私自使用大功率用电设备、禁止私拉乱接。</div>
        <div class="text-indent mb-20">16、现场施工作业要做到工完料净场地清。</div>
      </div>

      <div class="d-flex flex-row mt-2 justify-content-end">
        <div style="padding-right: 80px" class="flex">
          <div @click="setUpEquipment('noticeForm.acceptSign','TaskSignFinger')">接受告知人（签字）:</div>
          <el-image v-show="noticeForm.acceptSign" class="sign_img" :src="noticeForm.acceptSign" fit="fill"></el-image>
        </div>
      </div>
    </div>
    <script>
      const { createApp, reactive, toRefs, ref, onMounted } = Vue;
      const vue3Composition = {
        setup() {
          const noticeForm = ref({
            acceptSign: "", //接受告知人
          });

          window.setSign = (event) => {
            noticeForm.value[event.key] = event.img;
          };

          window.getData = (event) => {
            return noticeForm.value;
          };
          window.setData = (data) => {};

          //peopleForm.sign
          const setUpEquipment = (key, type) => {
            window.parent.childListener({
              key,
              type,
            });
          };
          return {
            noticeForm,
            setUpEquipment,
          };
        },
      };
      const app = createApp(vue3Composition).use(ElementPlus).mount("#app");
    </script>
  </body>
</html>
